package org.jeecg.modules.ft.ftOrder.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.modules.ft.ftOrderDetail.entity.FtOrderDetail;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.List;

/**
 * @Description: 餐饮订单
 * @Author: jeecg-boot
 * @Date:   2021-01-11
 * @Version: V1.0
 */
@Data
@TableName("ft_order")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="ft_order对象", description="餐饮订单")
public class OrderReport implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**订单编码*/
	@Excel(name = "订单编码", width = 15, needMerge=true)
    @ApiModelProperty(value = "订单编码")
    private String orderCode;
    /**商家名称*/
    @Excel(name = "商家名称", width = 15,needMerge=true)
    @ApiModelProperty(value = "商家名称")
    private java.lang.String tenantName;
    /**商家地址*/
    @Excel(name = "商家地址", width = 15,needMerge=true)
    @ApiModelProperty(value = "商家地址")
    private java.lang.String tenantAddress;
	/**客户名称*/
	@Excel(name = "客户名称", width = 15, needMerge=true)
    @ApiModelProperty(value = "客户名称")
    private String userName;
	/**用户联系方式*/
	@Excel(name = "用户联系方式", width = 15, needMerge=true)
    @ApiModelProperty(value = "用户联系方式")
    private String userPhone;
	/**订单金额*/
	@Excel(name = "订单金额", width = 15, needMerge=true)
    @ApiModelProperty(value = "订单金额")
    private Double orderMoney;
	/**支付金额*/
	@Excel(name = "支付金额", width = 15,needMerge=true)
    @ApiModelProperty(value = "支付金额")
    private Double payMoney;
	/**送餐时间*/
	@Excel(name = "送餐时间", width = 15, format = "yyyy-MM-dd",needMerge=true)
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "送餐时间")
    private java.util.Date timeSlot;
	/**收货地址*/
	@Excel(name = "收货地址", width = 15,needMerge=true)
    @ApiModelProperty(value = "收货地址")
    private String giveAddress;
	/**楼栋*/
	@Excel(name = "楼栋", width = 15,needMerge=true)
    @ApiModelProperty(value = "楼栋")
    private String build;
    /**所属学校*/
    @Excel(name = "所属学校", width = 15,needMerge=true)
    @ApiModelProperty(value = "所属学校")
    private String school;

    @ExcelCollection(name="订单明细")
    @ApiModelProperty(value = "订单明细")
    private List<FtOrderDetail> ftOrderDetailList;
}
